<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Date"%>
<%@page import="java.util.List"%>
<%@page import="stock_management_stock_ctrl.stock_helper"%>
<%@page import="stock_management_stock_ctrl.stock_edit_hepler"%>
<%@page import="helper.TecPaginator"%>
<%@taglib prefix="sj" uri="/struts2-jquery-tags" %>
<%
Date now = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddmmss");
String getISODate=sdf.format(now);
List<Object> list=(List<Object>)session.getAttribute("stock_list");
TecPaginator tp=new TecPaginator(request,list,8,"startWith");
stock_edit_hepler seh=new stock_edit_hepler();
while(tp.isNext()){
stock_helper lb=(stock_helper)tp.next();


               seh.setStock_id(lb.getStock_id());
			   seh.setStock_type(lb.getStock_type());
			   seh.setPo_status(lb.getPo_status());
			   seh.setPo_id(lb.getPo_id());
			   seh.setSource(lb.getSource());
			   seh.setPo_location(lb.getPo_location());
			   seh.setTl_name(lb.getTl_name());
			   seh.setEx_name(lb.getEx_name());
			   seh.setSeller_name(lb.getSeller_name());
			   seh.setOwner_name(lb.getOwner_name());
			   seh.setMobile1(lb.getMobile1());
			   seh.setV_mfgy(lb.getV_mfgy());
			   seh.setV_make(lb.getV_make());
			   seh.setV_model(lb.getV_model());
			   seh.setV_version(lb.getV_version());
			   seh.setV_regd(lb.getV_regd());
			   seh.setV_reg(lb.getV_reg());
			   seh.setV_owner(lb.getV_owner());
			   seh.setV_fule_type(lb.getV_fule_type());
			   seh.setV_trans_type(lb.getV_trans_type());
			   seh.setV_out_color(lb.getV_out_color());
			   seh.setV_in_color(lb.getV_in_color());
			   seh.setV_kms(lb.getV_kms());
			   seh.setDoc_rc(lb.getDoc_rc());
			   seh.setDoc_ins(lb.getDoc_ins());
			   seh.setDoc_ins_type(lb.getDoc_ins_type());
			   seh.setDoc_ins_validity(lb.getDoc_ins_validity());
			   seh.setV_mfgm(lb.getV_mfgm());
			   seh.setPd_pr_price(lb.getPd_pr_price());
			   seh.setCreated_time(lb.getCreated_time());
			   
			   seh.setDoc_ins_company(lb.getDoc_ins_company());
			   seh.setDoc_service_booklet(lb.getDoc_service_booklet());
			   seh.setDoc_duplicate_key(lb.getDoc_duplicate_key());
			   seh.setPd_pr_price(lb.getPd_pr_price());
			   seh.setPd_pr_brokage(lb.getPd_pr_brokage());
			   seh.setPd_pr_estm_refurb(lb.getPd_estm_magin());
			   seh.setPd_interest(lb.getPd_interest());
			   seh.setPd_mfc_warranty(lb.getPd_mfc_warranty());
			   seh.setPd_vat_sales_tax(lb.getPd_vat_sales_tax());
			   seh.setPd_ins_price(lb.getPd_ins_price());
			   seh.setPd_estm_magin(lb.getPd_estm_magin());
			   seh.setPd_estm_selling_price(lb.getPd_estm_selling_price());
			   seh.setSaftey(lb.getSaftey());
			   seh.setComfort(lb.getComfort());
			   seh.setMajor_modification(lb.getMajor_modification());
			   seh.setSpecial_notes(lb.getSpecial_notes());
			   seh.setStock_location(lb.getStock_location());
			   seh.setCheck_stock(lb.getCheck_stock());
			   seh.setStock_status(lb.getStock_status());
			   seh.setVisible_ex(lb.getVisible_ex());
			   seh.setPd_rto_price(lb.getPd_rto_price());
			   seh.setPd_selling_price(lb.getPd_selling_price());
               seh.setDoc_service_record(lb.getDoc_service_record());
               seh.setPr_payment_date(lb.getPr_payment_date());
}
String getsaftey=seh.getSaftey();
System.out.println("getsaftey>>>>>>>>>>>>>>>>>"+getsaftey);
String[] getsaftey_value=getsaftey.split("/");


String getsaftey_value1=getsaftey_value[0];
System.out.println("getsaftey_value1>>>>>>>>>>>>>>>>>"+getsaftey_value1);
String getsaftey_value2=getsaftey_value[1];
System.out.println("getsaftey_value2>>>>>>>>>>>>>>>>>"+getsaftey_value);
String getsaftey_value3=getsaftey_value[2];
System.out.println("getsaftey_value3>>>>>>>>>>>>>>>>>"+getsaftey_value3);
String getsaftey_value4=getsaftey_value[3];
System.out.println("getsaftey_value4>>>>>>>>>>>>>>>>>"+getsaftey_value4);
String getsaftey_value5=getsaftey_value[4];
System.out.println("getsaftey_value5>>>>>>>>>>>>>>>>>"+getsaftey_value5);
String getsaftey_value6=getsaftey_value[5];
System.out.println("getsaftey_value6>>>>>>>>>>>>>>>>>"+getsaftey_value6);
String getsaftey_value7=getsaftey_value[6];
System.out.println("getsaftey_value7>>>>>>>>>>>>>>>>>"+getsaftey_value7);
String getcomfort=seh.getComfort();
String[] getcomfort_value=getcomfort.split("/");
System.out.println("getcomfort>>>>>>>>>>>>>>>>>"+getcomfort);
String getcomfort_value1=getcomfort_value[0];

System.out.println("getcomfort_value1>>>>>>>>>>>>>>>>>"+getcomfort_value1);
String getcomfort_value2=getcomfort_value[1];
System.out.println("getcomfort_value2>>>>>>>>>>>>>>>>>"+getcomfort_value2);
String getcomfort_value3=getcomfort_value[2];
System.out.println("getcomfort_value3>>>>>>>>>>>>>>>>>"+getcomfort_value3);
String getcomfort_value4=getcomfort_value[3];
System.out.println("getcomfort_value4>>>>>>>>>>>>>>>>>"+getcomfort_value4);
String getcomfort_value5=getcomfort_value[4];
System.out.println("getcomfort_value5>>>>>>>>>>>>>>>>>"+getcomfort_value5);

%>


<html>
<head>
<sj:head/>
<META NAME="robots" CONTENT="All">
<META NAME="noodp" CONTENT="ODP (Default)">
<META NAME="googlebot" CONTENT="All">
<META NAME="cache-control" CONTENT="public">
<META NAME="pragma" CONTENT="public">
<META NAME="google-site-verification" CONTENT="vtw1pu4-gkJ3-W7Tugu3TwiwoA4cFNz0Oy6lJfJ15a4"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<META http-equiv="X-UA-Compatible" CONTENT="IE=EmulateIE7">
<META http-equiv="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<script src="Scripts/mfcrm_js.js" type="text/javascript"></script>
<script src="Scripts/box.js" type="text/javascript"></script>
<link href="Styles/box.css" rel="stylesheet" type="text/css" />
<link href="Styles/mfcrm_styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function refreshParent() {
  window.opener.location.href = window.opener.location.href;
}
 function Year_list() {
                    // var idField = document.getElementById("couponNo");
     
                    var url = "getYearAction";
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Year;
                    req.send(null);
  
                }

                function callback_Year() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("year_start");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }   
                        
              function Source_list() {
     
                    var url = "getSourceAction";
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Source;
                    req.send(null);
  
                }

                function callback_Source() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("source");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }
                function Location_list() {
     
                    var url = "getLocationAction";
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Location;
                    req.send(null);
  
                }

                function callback_Location() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("po_location");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }
          function GetTeamLeader() {
                    var Location_ID = document.getElementById("po_location").value;
     
                    var url = "getTeamLeaderAction?location_id="+Location_ID;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_TeamLeader;
                    req.send(null);
  
                }

                function callback_TeamLeader() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("tl_name");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }
                 function GetExecutive() {
                    var executive_ID = document.getElementById("tl_name").value;
     
                    var url = "getExecutiveAction?executive_id="+executive_ID;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_Executive;
                    req.send(null);
  
                }

                function callback_Executive() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("ex_name");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }  
               function GetMake() {
                    var make = document.getElementById("year_start").value;
     
                    var url = "getMakeAction?make_action="+make;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_make;
                    req.send(null);
  
                }

                function callback_make() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("make");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }   
                function getModel() {
                    var make = document.getElementById("make").value;
                    var year = document.getElementById("year_start").value;
                    var url = "getModelAction?model_action="+make+"&year_action="+year;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_model;
                    req.send(null);
  
                }

                function callback_model() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("model");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                } 
                 function getVersion() {
                    var model = document.getElementById("model").value;
                    var url = "getVersionAction?model_action="+model;
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_version;
                    req.send(null);
  
                }

                function callback_version() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("version");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            opt.text = temp[i];
        
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                }  
              
                
                function getstock_location() {
                    
                    var url = "getStockLocationAction";
           
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_location;
                    req.send(null);
  
                }

                function callback_location() {
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var name= document.getElementById("stock_location");
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        name.options.length = 0; // clear out existing items
                        for(i=0; i <temp.length-1;i++)
                        {
                            var opt = document.createElement('option');
                            
                            opt.text = temp[i];
                           
                            try
                            {
                                name.add( opt, null );						
                            }
                            catch(ex)
                            {
                                name.add( opt );		
                            }	
                   
                        }											
        
            
                        }

                    }
                } 
                
           function get_multiple_value()
             {
                var idField = document.getElementById("make").value;
               // alert(idField);
                var idyear= document.getElementById("year_start").value;
                //  alert(idyear);
                var idmodel = document.getElementById("model").value;
                //  alert(idmodel);
                var idversion = document.getElementById("version").value;
              //    alert(idversion);
          
                   var url = "getMultipleAction?make_action=" +idField+"&year_action="+idyear+"&model_action="+idmodel+"&version_action="+idversion;
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_multiple_value;
                    req.send(null);
             }
           function callback_multiple_value() {
   
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var breakStr=req.responseText;
                        var temp=new Array();
                       
                        temp=  breakStr.split(':');
                        
                        var cida=temp[0];
                        //alert(cida);
                        var cdt=temp[1];
                        //alert(cdt);
                        document.getElementById("model_id").value=cida;
                        }
                        }
                        }
                        
           function  get_executive_id_tl()
             {
                var idField = document.getElementById("po_location").value;
               // alert(idField);
                var idyear= document.getElementById("tl_name").value;
                //  alert(idyear);
                var idmodel = document.getElementById("ex_name").value;
                //  alert(idmodel);
          
                   var url = "getExecutiveIDAction?location_action=" +idField+"&tl_name_action="+idyear+"&ex_name_action="+idmodel;
   
                    if (typeof XMLHttpRequest != "undefined") {
                        req = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        req = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    req.open("GET", url, true);
   
                    req.onreadystatechange = callback_executive_id_value;
                    req.send(null);
             }
           function callback_executive_id_value() {
   
                    if (req.readyState == 4) {
                        if (req.status == 200) {
                        var breakStr=req.responseText;
                        var temp=new Array();
                        temp=  breakStr.split(':');
                        var suppoa=temp[0];
                        var poductca=temp[1];
                       document.getElementById("tl").value=suppoa;
	                   document.getElementById("ex_id").value=poductca; 
                        }
                        }
                        }
</script>
</head>
<body>
<s:form action="stock_update" method="post" name="stock_data" theme="css_xhtml">
<table border="0" cellpadding="0" cellspacing="0" align="left" width="100%">
<tbody>
<tr>
<td width="100%" height="38" valign="middle" align="left" bgcolor="#ff7519" >Edit & View Stock Form:</td>
</tr>
			<tr>
				<td >
				<table  class="obox" cellpadding="0" width="100%">
					<tbody><tr>
						<td><div>
						  <table width="100%">
						    <tbody>
                             <tr bgcolor="#ffffff">
						         <td class="style1" width="16">Stock Type : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                 <input name="stock_id" type="hidden" id="stock_id" value="<%=seh.getStock_id()%>" >
                                 <input name="current_date" type="hidden" id="current_date" value="<%=getISODate%>" >
                                 <select id="stock_type" style="width:100px;" name="stock_type" tabindex="1" >
                                 <%
                                 if(seh.getStock_type().equalsIgnoreCase("Procurement"))
                                 { 
                                 %>
                                 <option value="<%=seh.getStock_type() %>"><%=seh.getStock_type()%></option>
                                 <option value="Exchange">Exchange</option>
                                 <option value="PNS">Park 'n' Sell</option>
                                <% }
                                else if(seh.getStock_type().equalsIgnoreCase("Exchange")){%>
                                 <option value="<%=seh.getStock_type() %>"><%=seh.getStock_type()%></option>
                                 <option value="Procurement">Procurement</option>
                                 <option value="PNS">Park 'n' Sell</option>
                                 <%}
                                 else if(seh.getStock_type().equalsIgnoreCase("Park 'n' Sell"))
                                 {
                                 %>
                                 <option value="<%=seh.getStock_type() %>"><%=seh.getStock_type()%></option>
                                 <option value="Procurement">Procurement</option>
                                 <option value="Exchange">Exchange</option>
                                 <%} 
                                 
                                 else
                                 {%>
                                 <option value="Procurement">Procurement</option>
                                 <option value="Exchange">Exchange</option>
                                 <option value="PNS">Park 'n' Sell</option>
                                <%}%>
                                 </select>  
                                 </td>
                                  
						        <td class="style5">Po Order: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
                               <select id="po_status" style="width:100px;" name="po_status" tabindex="2">
                                <%
                                 if(seh.getPo_status().equalsIgnoreCase("NO"))
                                 { 
                                 %>
                                 <option value="<%=seh.getPo_status()%>"><%=seh.getPo_status()%></option>
                                 <option value="Yes">Yes</option>
                                <% }
                                else if(seh.getPo_status().equalsIgnoreCase("YES")){%>
                                 <option value="<%=seh.getPo_status()%>"><%=seh.getPo_status()%></option>
                                 <option value="No">No</option>
                                 <%}
                                 else
                                 {%>
                                  <option value="No">No</option>
                                  <option value="Yes">Yes</option>
                                <%}%>
                                </select>  
                               </td>
						         <td class="style1">Po ID : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                 <input name="po_id" type="text" id="po_id" title="Please Press Tab" style="width: 100px" tabindex="3" value=" <%=seh.getPo_id()%>">
                                </td>
                                <td class="style1">Po Date:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td>
						         <input name="pr_payment_date" type="text" id="pr_payment_date" title="Please Press Tab" style="width: 100px" tabindex="4" value=" <%=seh.getPr_payment_date()%>">
						         </td>
						         <td width="5%">
						       
						         </td>
					           </tr>
						      <tr bgcolor="#ffffff">
						         <td class="style1">Source : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td >
                                <select   list="# {'':'Select Source'}" name="source"   id="source" onfocus="Source_list();" onchange="return insert_source_change();" style="width:100px;" tabindex="5">
                                <option value="<%=seh.getSource()%>"><%=seh.getSource()%></option>
                                </select>
                                 </td>
                                  
						        <td class="style5">Location : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td>
                                 <select  list="# {'':'Select Location'}" name="po_location" id="po_location" onfocus="Location_list();" onchange="return GetTeamLeader();" onclick="insert_location_change();" style="width:100px;" tabindex="6">
                                 <option value="<%=seh.getPo_location()%>"><%=seh.getPo_location()%></option>
                                 </select>
                                 </td>
						         <td class="style1">TL : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  <input name="tl" type="hidden" id="tl" title="Please Press Tab" value="<%=seh.getTl() %>" >
                                  </td>
                                 <td>
                                <select  list="# {'':'Select Team Leader'}"  name="tl_name" id="tl_name" onchange="GetExecutive();" style="width:100px;" tabindex="7">
                                <option value="<%=seh.getTl_name()%>"><%=seh.getTl_name()%></option>
                                </select>
                                </td>
                                <td class="style1">Executive :  <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td >
                                 <select  list="# {'':'Select Executive'}"  name="ex_name" id="ex_name"  onchange="get_executive_id_tl();" style="width:100px;" tabindex="8"> 
                                <option value="<%=seh.getEx_name()%>"><%=seh.getEx_name()%></option>
                                 </select>
						        <input name="ex_id" type="hidden" id="ex_id" title="Please Press Tab" value="<%=seh.getEx_id()%>" >
						        </td>
					           </tr>
					         <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>  
	                        <tr bgcolor="#ffffff">
						         <td class="style1">Seller Name :  <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 
						        <td class="style1">
                                    <input name="seller_name" type="text" value="<%=seh.getSeller_name()%>" id="seller_name" title="Please Press Tab" style="width: 100px" tabindex="9">
                                  </td>
						        <td class="style1" width="100">Owner Name. :<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
                                 <td class="style2"><input name="owner_name" type="text" value="<%=seh.getOwner_name()%>" id="owner_name" tabindex="10" style="width: 100px">
                                   
                                 </td>
                                  
						        <td class="style5">Mobile-1:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 
						        <td class="style1"><input name="mobile1" value="<%=seh.getMobile1()%>" type="text" id="mobile1" maxlength="10" style="width: 100px" tabindex="11">
                               </td>
                              
                                                       
						        <td class="style1">Mobile-2 : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
                                <td nowrap="nowrap" class="style1">
                                 <input name="mobile2" type="text" id="mobile2" tabindex="12" maxlength="20" style="width: 100px" value=" <%=seh.getMobile2()%>">
                                </td>
					          </tr>
					          
					          <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>
					          <tr bgcolor="#ffffff">
						         <td class="style1">Car Mfg: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                <td id="hidden_first4">
                                 <input type="text" value="<%=seh.getV_mfgm()%>" name="v_mfgm" style="width:50px;" tabindex="13"> 
                                <select class="selectcell" style="width:48px;" list="# {'':'Year'}" name="v_mfgy" id="year_start" onfocus="Year_list()" onchange="GetMake();" >
							      <option value="<%=seh.getV_mfgy()%>"><%=seh.getV_mfgy()%></option>
							      </select> 
                                 </td>
						        <td class="style1">Make:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td>
                                <select  list="# {'':'Select Make'}" name="v_make" id="make" onchange="getModel();" style="width:100px;" tabindex="13">
                                <option value="<%=seh.getV_make()%>"><%=seh.getV_make()%></option>
                                </select>
                                 </td>
                                 
                                  
						        <td class="style5">Model:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						         <td>
						        <select  list="# {'':'Select Model'}" name="v_model" id="model" onchange="getVersion();"  style="width:100px;" tabindex="16">
						        <option value="<%=seh.getV_model()%>"><%=seh.getV_make()%></option>
						        </select>
						        <input name="model_id" type="hidden" id="model_id" title="Please Press Tab" value="<%=seh.getModel_id() %>">
						        </td>
                              
                                                          
						        <td class="style1">Version :<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td>
                                 <select  list="# {'':'Select Version'}" name="v_version" id="version" onchange="get_multiple_value();"  readonly="readonly" style="width:100px;" tabindex="13">
                                 <option value="<%=seh.getV_version()%>"><%=seh.getV_version()%></option>
                                </select>
                                </td>
                             
					          </tr> 
					           <tr bgcolor="#ffffff">
					          
						         <td class="style1">Reg Date:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 
						        <td class="style1">
						         <input type="text" value=" <%=seh.getV_regd()%>" name="v_regd" style="width:100px;" tabindex="18">
                                    
                                  </td>
                                 
						        <td class="style1">Reg Number:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2"><input name="v_reg" type="text" id="v_reg" tabindex="19" style="width: 100px" value="<%=seh.getV_reg() %>"></td>
                                  
						        <td class="style5"> Owner No :<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                <td>
                                <select id="v_owner" style="width:100px;" name="v_owner" tabindex="20">
                                <%if(seh.getV_owner().equalsIgnoreCase("FIRST")) {%>
                                <option value="<%=seh.getV_owner()%>"><%=seh.getV_owner()%></option>
                                  <option value="Second">Second</option>
                                  <option value="Third">Third</option>
                                  <option value="Four">Four</option>
                                  <option value="Above">Above</option>
                                  <%}else if(seh.getV_owner().equalsIgnoreCase("SECOND")) {%>
                                  <option value="<%=seh.getV_owner()%>"><%=seh.getV_owner()%></option>
                                  <option value="First">First</option>
                                  <option value="Third">Third</option>
                                  <option value="Four">Four</option>
                                  <option value="Above">Above</option>
                                  <%}else if(seh.getV_owner().equalsIgnoreCase("THIRD")) {%>
                                  <option value="<%=seh.getV_owner()%>"><%=seh.getV_owner()%></option>
                                  <option value="First">First</option>
                                  <option value="Second">Second</option>
                                  <option value="Four">Four</option>
                                  <option value="Above">Above</option>
                                  <%}else if(seh.getV_owner().equalsIgnoreCase("FOUR")) {%>
                                  <option value="<%=seh.getV_owner()%>"><%=seh.getV_owner()%></option>
                                  <option value="First">First</option>
                                  <option value="Second">Second</option>
                                  <option value="Third">Third</option>
                                  <option value="Above">Above</option>
                                  <%}else if(seh.getV_owner().equalsIgnoreCase("ABOVE")) {%>
                                <option value="<%=seh.getV_owner()%>"><%=seh.getV_owner()%></option>
                                  <option value="First">First</option>
                                  <option value="Second">Second</option>
                                  <option value="Third">Third</option>
                                  <option value="Four">Four</option>
                                  <%} %>
                                </select> 
						        </td>
                              
                                                          
						        <td class="style1">Fule Type:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
                                 <td>
                                <select id="v_fule_type" name="v_fule_type" class="header_Search_Dropdown" style="width:100px;" tabindex="21">
                                <%if(seh.getV_fule_type().equalsIgnoreCase("CNG")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="Diesel">Diesel</option>
                				<option value="Electric">Electric</option>
                				<option value="Hybrid">Hybrid</option>
               					<option value="LPG ">LPG</option>
                				<option value="Petrol">Petrol</option>
               					<option value="Petrol&Gas">Petrol&Gas</option>
               					<%} if(seh.getV_fule_type().equalsIgnoreCase("DIESEL")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="CNG">CNG</option>
                				<option value="Electric">Electric</option>
                				<option value="Hybrid">Hybrid</option>
               					<option value="LPG ">LPG</option>
                				<option value="Petrol">Petrol</option>
               					<option value="Petrol&Gas">Petrol&Gas</option>
               					<%} if(seh.getV_fule_type().equalsIgnoreCase("ELECTRIC")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="CNG">CNG</option>
                                <option value="Diesel">Diesel</option>
                				<option value="Hybrid">Hybrid</option>
               					<option value="LPG ">LPG</option>
                				<option value="Petrol">Petrol</option>
               					<option value="Petrol&Gas">Petrol&Gas</option>
               					<%} if(seh.getV_fule_type().equalsIgnoreCase("HYBRID")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="CNG">CNG</option>
                                <option value="Diesel">Diesel</option>
                				<option value="Electric">Electric</option>
               					<option value="LPG ">LPG</option>
                				<option value="Petrol">Petrol</option>
               					<option value="Petrol&Gas">Petrol&Gas</option>
               					<%} if(seh.getV_fule_type().equalsIgnoreCase("LPG")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="CNG">CNG</option>
                                <option value="Diesel">Diesel</option>
                				<option value="Electric">Electric</option>
                				<option value="Hybrid">Hybrid</option>
                				<option value="Petrol">Petrol</option>
               					<option value="Petrol&Gas">Petrol&Gas</option>
               					<%} if(seh.getV_fule_type().equalsIgnoreCase("PETROL")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="CNG">CNG</option>
                                <option value="Diesel">Diesel</option>
                				<option value="Electric">Electric</option>
                				<option value="Hybrid">Hybrid</option>
               					<option value="LPG ">LPG</option>
                				<option value="Petrol">Petrol</option>
               					<option value="Petrol&Gas">Petrol&Gas</option>
               					<%} if(seh.getV_fule_type().equalsIgnoreCase("PETROL&GAS")){ %>
                                <option value="<%=seh.getV_fule_type()%>"><%=seh.getV_fule_type()%></option>
                                <option value="CNG">CNG</option>
                                <option value="Diesel">Diesel</option>
                				<option value="Electric">Electric</option>
                				<option value="Hybrid">Hybrid</option>
               					<option value="LPG ">LPG</option>
                				<option value="Petrol">Petrol</option>
               					<%} %>
              					</select>
                                </td>
                              
					          </tr>   
					           <tr bgcolor="#ffffff">
						         <td class="style1">Transmission : <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						         <td>
						        <select id="v_trans_type" name="v_trans_type" class="header_Search_Dropdown" style="width:100px;" tabindex="22">
                                  <%if(seh.getV_trans_type().equalsIgnoreCase("AUTOMATIC")) {%>
                                   <option value="<%=seh.getV_trans_type()%>"></option>
                                   <option value="Manual">Manual</option>
                                   <%}else if(seh.getV_trans_type().equalsIgnoreCase("MANUAL")){ %>
                                   <option value="<%=seh.getV_trans_type()%>"></option>
                                   <option value="Automatic">Automatic</option>
                                   <option value="Manual">Manual</option>
                                   <%} else { %>
                                   <option value="Automatic">Automatic</option>
                                   <option value="Manual">Manual</option>
                                   <%} %>
                                </select>
                                 </td>
						        <td class="style1">Exterior Color:<span  style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                 <input name="v_out_color" type="text" id="v_out_color" tabindex="23" style="width: 100px" value="<%=seh.getV_out_color() %>">
                                 </td>
                                  
						        <td class="style5">Interior Color:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"><input name="v_in_color" type="text" id="v_in_color" tabindex="24" style="width: 100px" value="<%=seh.getV_in_color()%>"></td>
                              
                                                          
						        <td class="style1">KMS:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
                                <td nowrap="nowrap" class="style1">
                                <input name="v_kms" type="text" id="v_kms" tabindex="25" style="width: 100px" value="<%=seh.getV_kms()%>">
                                </td>
                               
					          </tr>      
						      <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>
					           <tr bgcolor="#ffffff">
						        <td class="style1">Original RC:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1">
                                 <select id="doc_rc" style="width:100px;" name="doc_rc" tabindex="26">
                                  <%
                                 if(seh.getDoc_rc().equalsIgnoreCase("NO"))
                                 { 
                                 %>
                                 <option value="<%=seh.getDoc_rc()%>"><%=seh.getDoc_rc()%></option>
                                 <option value="Yes">Yes</option>
                                <% }
                                else if(seh.getDoc_rc().equalsIgnoreCase("YES")){%>
                                 <option value="<%=seh.getDoc_rc()%>"><%=seh.getDoc_rc()%></option>
                                 <option value="No">No</option>
                                 <%}
                                 else
                                 {%>
                                  <option value="No">No</option>
                                  <option value="Yes">Yes</option>
                                <%}%>
                                </select>  
						          </td>
						        <td class="style1">Ins :<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                 <select id="doc_ins" style="width:100px;" name="doc_ins" tabindex="27">
                                  <%
                                 if(seh.getDoc_ins().equalsIgnoreCase("NO"))
                                 { 
                                 %>
                                 <option value="<%=seh.getDoc_ins()%>"><%=seh.getDoc_ins()%></option>
                                 <option value="Yes">Yes</option>
                                <% }
                                else if(seh.getDoc_ins().equalsIgnoreCase("YES")){%>
                                 <option value="<%=seh.getDoc_ins()%>"><%=seh.getDoc_ins()%></option>
                                 <option value="No">No</option>
                                 <%}
                                 else
                                 {%>
                                  <option value="No">No</option>
                                  <option value="Yes">Yes</option>
                                <%}%>
                                </select>  
                                 </td>
                                  
						        <td class="style5">Ins Type :<span  style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						         <select id="doc_ins_type" style="width:100px;" name="doc_ins_type" tabindex="28">
                                 <%if(seh.getDoc_ins_type().equalsIgnoreCase("COM")){ %>
                                  <option value="<%=seh.getDoc_ins_type()%>"><%=seh.getDoc_ins_type()%></option> 
                                  <option value="Com">Com</option>
                                  <option value="TP">TP</option>
                                  <option value="0DEP">0DEP</option>
                                  <%} if(seh.getDoc_ins_type().equalsIgnoreCase("TP")){ %>
                                  <option value="<%=seh.getDoc_ins_type()%>"><%=seh.getDoc_ins_type()%></option> 
                                  <option value="Com">Com</option>
                                  <option value="0DEP">0DEP</option>
                                  <%}if(seh.getDoc_ins_type().equalsIgnoreCase("0DEP")){ %>
                                  <option value="<%=seh.getDoc_ins_type()%>"><%=seh.getDoc_ins_type()%></option> 
                                  <option value="Com">Com</option>
                                  <option value="TP">TP</option>
                                  <%} %>
                                </select> 
						        </td>
						        <td class="style1">Ins Val:<span style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                <td nowrap="nowrap" class="style1">
                                 <input name="doc_ins_validity" type="text"  tabindex="29" value="<%=seh.getDoc_ins_validity() %>" style="width: 100px">
                                </td>
                                  
                                  
					          </tr>
					          
						      <tr bgcolor="#ffffff">
						         <td class="style1">Ins Company :<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						       <td valign="top" nowrap="nowrap" class="style1">
						         <select id="doc_ins_company" style="width:100px;" name="doc_ins_company" tabindex="30">
                               <% if(seh.getDoc_ins_company().equalsIgnoreCase("HDFC")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="BOB">BOB</option>
                                  <option value="ICICI">ICICI</option>
                                 <option value="PNB">PNB</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 <option value="ORTHER">ORTHER</option>
                                 <%} else if(seh.getDoc_ins_company().equalsIgnoreCase("ICIC")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="BOB">BOB</option>
                                 <option value="HDFC">HDFC</option>
                                 <option value="PNB">PNB</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 <option value="ORTHER">ORTHER</option>
                                 <%} else if(seh.getDoc_ins_company().equalsIgnoreCase("PNB")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="BOB">BOB</option>
                                 <option value="HDFC">HDFC</option>
                                 <option value="ICICI">ICICI</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 <option value="ORTHER">ORTHER</option>
                                 <%} else if(seh.getDoc_ins_company().equalsIgnoreCase("RBI")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="BOB">BOB</option>
                                 <option value="HDFC">HDFC</option>
                                 <option value="ICICI">ICICI</option>
                                 <option value="PNB">PNB</option>
                                 <option value="SBI">SBI</option>
                                 <option value="ORTHER">ORTHER</option>
                                 <%} else if(seh.getDoc_ins_company().equalsIgnoreCase("SBI")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="BOB">BOB</option>
                                 <option value="HDFC">HDFC</option>
                                  <option value="ICICI">ICICI</option>
                                 <option value="PNB">PNB</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 <option value="Other">Other</option>
                                 <%} else if(seh.getDoc_ins_company().equalsIgnoreCase("ORTHER")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="BOB">BOB</option>
                                 <option value="HDFC">HDFC</option>
                                  <option value="ICICI">ICICI</option>
                                 <option value="PNB">PNB</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 
                                 <%} else if(seh.getDoc_ins_company().equalsIgnoreCase("AXIS")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="BOB">BOB</option>
                                 <option value="HDFC">HDFC</option>
                                 <option value="ICICI">ICICI</option>
                                 <option value="PNB">PNB</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 <option value="Other">Other</option>
                                 <%}else if(seh.getDoc_ins_company().equalsIgnoreCase("BOB")){%> 
                                 <option value="<%=seh.getDoc_ins_company()%>"><%=seh.getDoc_ins_company()%></option>
                                 <option value="AXIS">AXIS</option>
                                 <option value="HDFC">HDFC</option>
                                  <option value="ICICI">ICICI</option>
                                 <option value="PNB">PNB</option>
                                 <option value="RBI">RBI</option>
                                 <option value="SBI">SBI</option>
                                 <option value="Other">Other</option>
                                 <%} %>                                </select>
						          </td>
						        <td class="style1">Service Record :<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                 <select id="doc_service_record" style="width:100px;" name="doc_service_record" tabindex="31">
                                 <option value="<%=seh.getDoc_service_record()%>"><%=seh.getDoc_service_record()%></option>
                                 <option value="No">No</option>
                                 <option value="Yes">Yes</option>
                                 </select> 
                                 </td>
                                  <td class="style5" width="100">Duplicate Keys:<span  style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						         <select id="doc_duplicate_key" style="width:100px;" name="doc_duplicate_key" tabindex="32">
                                  <%
                                 if(seh.getDoc_duplicate_key().equalsIgnoreCase("YES,NO"))
                                 { 
                                 %>
                                 <option value="Yes">Yes</option>
                                 <option value="No">No</option>
                                <% }
                                else if(seh.getDoc_duplicate_key().equalsIgnoreCase("YES")){%>
                                 <option value="<%=seh.getDoc_duplicate_key()%>"><%=seh.getDoc_duplicate_key()%></option>
                                 <option value="No">No</option>
                                 <%}
                                 else if(seh.getDoc_duplicate_key().equalsIgnoreCase("NO")){%>
                                   <option value="<%=seh.getDoc_duplicate_key()%>"><%=seh.getDoc_duplicate_key()%></option>
                                  <option value="Yes">Yes</option>
                                 <%}
                                 else
                                 {%>
                                  <option value="No">No</option>
                                  <option value="Yes">Yes</option>
                                <%}%>
                                 </select> 
						        </td>
						        <td class="style5">Service Bk:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						         <select id="doc_service_booklet" style="width:100px;" name="doc_service_booklet" tabindex="33">
                                <option value="<%=seh.getDoc_service_booklet()%>"><%=seh.getDoc_service_booklet()%></option>
                                 <option value="No">No</option>
                                 <option value="Yes">Yes</option>
                                 </select> 
						        </td>
					          </tr>
					        <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>  
					          
						      <tr bgcolor="#ffffff">
						         <td class="style1">Po Price:<span id="s_ground_clearance" style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						       <td valign="top" nowrap="nowrap" class="style1">
                                    <input name="pd_pr_price" type="text" id="pd_pr_price" tabindex="34" value="<%=seh.getPd_pr_price() %>" style="width: 100px">
						          </td>
						        <td class="style1">Brokerage :<span style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                 <input name="pd_pr_brokage" type="text" id="pd_pr_brokage" tabindex="35" value="<%=seh.getPd_pr_brokage()%>" style="width: 100px" >
                                 </td>
						        <td class="style5"> Est Refurb: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2">
						        
						        <input name="pd_pr_estm_refurb" type="text" id="pd_pr_estm_refurb" tabindex="36" value="<%=seh.getPd_pr_estm_refurb() %>" style="width: 100px"></td>
						        <td class="style1">Interest:  </td>
                                <td nowrap="nowrap" class="style1">
                                <input name="pd_interest" type="text" id="pd_interest" tabindex="37" value="<%=seh.getPd_interest()%>" style="width: 100px"></td>
                                  
                               
                                  
					          </tr>
						      <tr bgcolor="#ffffff">
						        <td class="style1">RTO :<span  style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1">
                                    <input name="pd_rto_price" type="text" id="pd_rto_price" value="<%=seh.getPd_rto_price()%>" tabindex="38" style="width: 100px">
						          </td>
						        <td class="style1">Warranty :<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1"><input name="pd_mfc_warranty" type="text" id="pd_mfc_warranty" value="<%=seh.getPd_mfc_warranty()%>" tabindex="39" style="width: 100px"></td>
                                  
						        <td class="style5">Vat/Sales/Tax:<span  style="color:Red;font-size:Medium;display:none;" >*</span>
                                  </td>
                                  
						        <td class="style2"><input name="pd_vat_sales_tax" type="text" id="pd_vat_sales_tax" tabindex="40" value="<%=seh.getPd_vat_sales_tax()%>" style="width: 100px"></td>
						        <td class="style1">Ins (New):<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                <td nowrap="nowrap" class="style1"><input name="pd_ins_price" type="text" id="pd_ins_price" tabindex="41" value="<%=seh.getPd_ins_price()%>" style="width: 100px"></td>
                                  
                               
                                  
					          </tr>
						        <tr>
						        <td class="style1">Asking Price  :</td>
						        <td valign="top" nowrap="nowrap" class="style1">
                                    <input name="pd_selling_price" type="text" id="pd_selling_price"  value="<%=seh.getPd_selling_price()%>" tabindex="42" style="width: 100px">
						          </td>
						        <td class="style1">EST Margin:</td>
                                 <td nowrap="nowrap" class="style1">
                                     <input name="pd_estm_magin" type="text" id="pd_estm_magin" tabindex="43" value="<%=seh.getPd_estm_magin()%>" style="width: 100px"></td>
                                  
						        <td class="style5">Exp Sell Price </td>
                                  
						        <td class="style2">
						        <input name="pd_estm_selling_price" type="text" id="pd_estm_selling_price" tabindex="44" value="<%=seh.getPd_estm_selling_price()%>" style="width: 100px">
						        </td>
						        </tr>
					       
                                 <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>  
					          
						      <tr bgcolor="#ffffff">
						         <td class="style1" width="13">Driver Air Bag:<span style="color:Red;font-size:Medium;display:none;">*</span>
						          <%if(getsaftey_value1.equalsIgnoreCase("DRIVER AIR BAG"))
						       { %>
						         <input name="s_driver_air_bag" type="checkbox" id="s_driver_air_bag" tabindex="45" value="Driver Air Bag" checked="checked">
                                 <%}else{ %>
                                   <input name="s_driver_air_bag" type="checkbox" id="s_driver_air_bag" tabindex="45" value="Driver Air Bag" >
                                 <%} %>
						        
                                  </td>
						       <td valign="top" nowrap="nowrap" class="style1" width="13">
                                   
						         Immoblizer:
						         <%if(getsaftey_value2.equalsIgnoreCase("IMMOBLIZER"))
						       { %>
						         <input name="s_immoblizer" type="checkbox" id="s_immoblizer" tabindex="46" value="Immoblizer" checked="checked">
                                 <%}else{ %>
                                  <input name="s_immoblizer" type="checkbox" id="s_immoblizer" tabindex="46" value="Immoblizer" >
                                 <%} %>
						          
						          </td>
						        <td class="style1" width="13">Pass Air Bag:<span style="color:Red;font-size:Medium;visibility:hidden;">*</span>
						       <%if(getsaftey_value3.equalsIgnoreCase("PASSENGER AIR BAG"))
						       { %>
						        <input name="s_passanger_air_bag" type="checkbox" id="s_passanger_air_bag" tabindex="47" value="Passenger Air Bag" checked="checked">
                                 <%}else{ %>
                                 <input name="s_passanger_air_bag" type="checkbox" id="s_passanger_air_bag" tabindex="47" value="Passenger Air Bag" >
                                 <%} %>
                                  </td>
                                 <td nowrap="nowrap" class="style1" width="13">ABS:
                                 <%if(getsaftey_value4.equalsIgnoreCase("ABS"))
						       { %>
						          <input name="s_abs" type="checkbox" id="s_abs" tabindex="48" value="ABS" checked="checked">
                                 <%}else{ %>
                                   <input name="s_abs" type="checkbox" id="s_abs" tabindex="48" value="ABS" >
                                 <%} %>
                                 
                                
                                 </td>
						        <td class="style5" width="13">Climate Control: <span style="color:Red;font-size:Medium;display:none;">*</span>
						        <%if(getsaftey_value5.equalsIgnoreCase("CLIMATE CONTROL"))
						       { %>
						          <input name="s_climate_control" type="checkbox" id="s_climate_control" tabindex="48" value="Climate Control" checked="checked">
                                 <%}else{ %>
                                  <input name="s_climate_control" type="checkbox" id="s_climate_control" tabindex="48" value="Climate Control" >
                                 <%} %>
						        
						       
                                  </td>
                                  
						        <td class="style2" width="13">Parking Sensors :
						        <%if(getsaftey_value6.equalsIgnoreCase("PARKING SENSORS"))
						       { %>
						         <input name="s_parking_sensors" type="checkbox" id="s_parking_sensors" tabindex="49" value="Parking Sensors" checked="checked">
                                 <%}else{ %>
                                 <input name="s_parking_sensors" type="checkbox" id="s_parking_sensors" tabindex="49" value="Parking Sensors" >
                                 <%} %>
						        </td>
						        
						        <td class="style1" width="13">Power Steering:
						         <%if(getcomfort_value1.equalsIgnoreCase("POWER STEERING"))
						       { %>
						        <input name="c_power_steering" type="checkbox" id="c_power_steering" tabindex="50" value="Power Steering" checked="checked">
                                 <%}else{ %>
                                 <input name="c_power_steering" type="checkbox" id="c_power_steering" tabindex="50" value="Power Steering" >
                                 <%} %>
						         
						        
						         </td>
                                <td class="style1" width="13">Steering Adjustement:
                                <%if(getcomfort_value2.equalsIgnoreCase("STEERING ADJUSTEMENT"))
						       { %>
						        <input name="c_steering_adjustement" type="checkbox" id="c_steering_adjustement" tabindex="51" value="Steering Adjustement" checked="checked">
                                 <%}else{ %>
                                <input name="c_steering_adjustement" type="checkbox" id="c_steering_adjustement" tabindex="51" value="Steering Adjustement" >
                                 <%} %>
                                
                                
                                </td>
                                  
                          
					          </tr>
						      <tr bgcolor="#ffffff">
						        <td class="style1" width="13">Power Window :<span  style="color:Red;font-size:Medium;display:none;">*</span>
						        
						         <%if(getcomfort_value3.equalsIgnoreCase("POWER WINDOW"))
						       { %>
						        <input name="c_power_window" type="checkbox" id="c_power_window" value="Power Window" tabindex="52" checked="checked">
                                 <%}else{ %>
                                <input name="c_power_window" type="checkbox" id="c_power_window" value="Power Window" tabindex="52">
                                 <%} %>
						       
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1" width="13">Central Locking:
                                    <%if(getcomfort_value4.equalsIgnoreCase("CENTRAL LOCKING"))
						       { %>
						          <input name="c_central_locking" type="checkbox" id="c_central_locking" value="Central Locking" tabindex="53" checked="checked">
                                 <%}else{ %>
                                  <input name="c_central_locking" type="checkbox" id="c_central_locking" value="Central Locking" tabindex="53">
                                 <%} %>
                                    
                                  
						          </td>
						        <td class="style1" width="13">Alloy Wheels:<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
						        <%if(getcomfort_value5.equalsIgnoreCase("ALLOY WHEELS"))
						       { %>
						         <input name="c_alloy_wheels" type="checkbox" id="c_alloy_wheels" value="Alloy Wheels" tabindex="54" checked="checked">
                                 <%}else{ %>
                                  <input name="c_alloy_wheels" type="checkbox" id="c_alloy_wheels" value="Alloy Wheels" tabindex="54">
                                 <%} %>
						        
                                  </td>
                                 <td nowrap="nowrap" class="style1" width="13">Leather Seats:
                                 <%if(getsaftey_value7.equalsIgnoreCase("LEATHER SEATS"))
						       { %>
						          <input name="s_rear_track" type="checkbox" id="s_rear_track" value="Leather Seats" tabindex="55" checked="checked">
                                 <%}else{ %>
                                  <input name="s_rear_track" type="checkbox" id="s_rear_track" value="Leather Seats" tabindex="55">
                                 <%} %>
                                 
                                
                                  
						        <td class="style5" width="13">Major Modification :<span  style="color:Red;font-size:Medium;display:none;" >*</span>
                                  </td>
                                  
						        <td class="style2"><input name="major_modification" value="<%=seh.getMajor_modification()%>" id="major_modification" type="text" tabindex="56" >
						        <td class="style1" width="13">Special Note:<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                <td class="style1"><input name="special_notes" type="text" id="special_notes" tabindex="57"  value="<%=seh.getSpecial_notes()%>">
                                  
                                  
					          </tr>
                               <tr bgcolor="#ffffff">
						        <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#20;Courier New&#20;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center" colspan="4"></td>
						        <td class="style5" colspan="4" bgcolor="#530053" style="font-family: &#20;Courier New&#20;, Courier, monospace; font-size: small; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="center"></td>
					          </tr>     
						         <tr bgcolor="#ffffff">
						        <td class="style1">Stock Location:<span  style="color:Red;font-size:Medium;display:none;">*</span>
						      
                                  </td>
						        <td>
						        <select  list="# {'':'Select Location'}" name="stock_location" id="stock_location" onfocus="getstock_location();" style="width:100px;" tabindex="58">
                                 <option value="<%=seh.getStock_location()%>"><%=seh.getStock_location()%></option>
                                 </select>
                                 </td>
						        <td class="style1">Stock Entry:<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1">
                                <select id="check_stock" style="width:100px;" name="check_stock" tabindex="60">
                                   <%
                                 if(seh.getCheck_stock().equalsIgnoreCase("YES,NO"))
                                 { 
                                 %>
                                 <option value="Yes">Yes</option>
                                 <option value="No">No</option>
                                <% }
                                else if(seh.getCheck_stock().equalsIgnoreCase("YES")){%>
                                 <option value="<%=seh.getCheck_stock()%>"><%=seh.getCheck_stock()%></option>
                                 <option value="No">No</option>
                                 <%}
                                 else if(seh.getCheck_stock().equalsIgnoreCase("NO")){%>
                                   <option value="<%=seh.getCheck_stock()%>"><%=seh.getCheck_stock()%></option>
                                  <option value="Yes">Yes</option>
                                 <%}
                                 else
                                 {%>
                                  <option value="No">No</option>
                                  <option value="Yes">Yes</option>
                                <%}%>
                                </select> 
                                 </td>
                                  
						        <td class="style5">Stock Status:<span  style="color:Red;font-size:Medium;display:none;" >*</span>
                                  </td>
                                 <td>
                                 <select id="stock_status" style="width:100px;" name="stock_status" tabindex="61">
                                 <%if(seh.getStock_status().equalsIgnoreCase("PROCURED")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Booked">Booked</option>
                                 <option value="Delivered">Delivered</option>
                                 <option value="Display">Display</option>
                                 <option value="Offload">Offload</option>
                                 <option value="Refrub">Refrub</option>
                                 <option value="Stock">Stock</option>
                                 <%}else if(seh.getStock_status().equalsIgnoreCase("REFURB")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Booked">Booked</option>
                                 <option value="Delivered">Delivered</option>
                                 <option value="Display">Display</option>
                                 <option value="Offload">Offload</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Stock">Stock</option>
                                 <%} else if(seh.getStock_status().equalsIgnoreCase("BOOKED")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Delivered">Delivered</option>
                                 <option value="Display">Display</option>
                                 <option value="Offload">Offload</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Refrub">Refrub</option>
                                 <option value="Stock">Stock</option>
                                 <%} else if(seh.getStock_status().equalsIgnoreCase("DELIVERED")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Booked">Booked</option>
                                 <option value="Display">Display</option>
                                 <option value="Offload">Offload</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Refrub">Refrub</option>
                                 <option value="Stock">Stock</option>
                                 <%} else if(seh.getStock_status().equalsIgnoreCase("DISPLAY")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Booked">Booked</option>
                                 <option value="Delivered">Delivered</option>
                                 <option value="Offload">Offload</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Refrub">Refrub</option>
                                 <option value="Stock">Stock</option>
                                 <%} else if(seh.getStock_status().equalsIgnoreCase("OFFLOAD")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Booked">Booked</option>
                                 <option value="Delivered">Delivered</option>
                                 <option value="Display">Display</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Refrub">Refrub</option>
                                 <option value="Stock">Stock</option>
                                 <%} else if(seh.getStock_status().equalsIgnoreCase("STOCK")){ %>
                                 <option value="<%=seh.getStock_status()%>"><%=seh.getStock_status()%></option>
                                 <option value="Booked">Booked</option>
                                 <option value="Delivered">Delivered</option>
                                 <option value="Display">Display</option>
                                 <option value="Procured">Procured</option>
                                 <option value="Refrub">Refrub</option>
                                 <%}%>
                                </select>  
						        </td>
						        <td class="style1">Exe Visible :<span  style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                <td nowrap="nowrap" class="style1">
                                 <select id="visible_ex" style="width:100px;" name="visible_ex" tabindex="62">
                                  <option value="<%=seh.getVisible_ex()%>"><%=seh.getVisible_ex()%></option>
                                  <option value="No">No</option>
                                  <option value="Yes">Yes</option>
                                </select>  
                                   </td>
					          </tr>
					          
						      <tr bgcolor="#ffffff">
						        <td colspan="9">
                                    <div id="ValidationSummary1" style="color:Red;display:none;">

</div>
                                  </td>
						     
					          </tr>
						      <tr valign="middle">
						        <td class="orgbg" colspan="10" align="center">
                                    <input type="submit" name="Button1" value="Update Stock"  id="Button1" tabindex="66" class="btn" onclick="refreshParent();">
						          &nbsp;
                                    <input type="reset" name="Button2" value="RESET" id="Button2" tabindex="67" class="btn">
                                    </td>
					          </tr>
					        </tbody>
					      </table></div></td>
					</tr>
				</tbody></table>
		</td></tr></tbody>
		
		</table>
 

		</s:form>
		<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="HelloWorld/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
		
		</body>
		</html>